%%%%%%%%%%%%%%%%%%
%title page macros
%%%%%%%%%%%%%%%%%%
 
%defaults: status, distribution list, date, and address
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\status}   {finished} % may be replaced by Entwurf
\newcommand{\distrib}  {public} % may be replaced by intern
\newcommand{\shorthand}{FZI} % may be replaced by STD, TA, ZGDV, ...

\newlength {\datelg}
\settowidth{\datelg}{Forschungszentrum Informatik xxx}
\newcommand{\address}  {\parbox[t]{\datelg}{Forschungszentrum Informatik\\
                                            Haid-und-Neu-Str. 10-14\\
                                            D-7500 Karlsruhe 1\\
                                           }
                       }

%commands: change date, german date
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\SetDate}[3]{\renewcommand{\day}{#1}
			 \renewcommand{\month}{#2}
			 \renewcommand{\year}{#3}}
\newcommand{\mydate}{%
   \number\day. 
   \ifcase\month\or
   Januar\or Februar\or M\"arz\or April\or Mai\or Juni\or
   Juli\or August\or September\or Oktober\or November\or Dezember\fi
   \space\number\year}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% stp (stone title page), gstp (german stone title page) %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% arg1: title of publication
% arg2: names of authors
% arg3: report number

\newcommand{\stp}[3]{%

   \thispagestyle{empty}    % empty page style

   \begin{center}
      \vspace*{2cm}
      {\Huge \bf STONE} \\ 
      \vskip 1cm
      {\large \bf A Structured and Open Environment}
   \end{center}

   \vspace{3cm}

   \begin{tabular}{p{6cm}p{8cm}}
      Title:          & #1               \\ \\ \\
      Author(s):      & #2               \\ \\ \\
      Date:           & \today           \\ \\ \\
      Resultnumber:   & \shorthand .#3   \\ \\ \\
      Status:         & \status          \\ \\ \\
      Distribution:   & \distrib         \\ \\ \\
      Address:        & \address
   \end{tabular}

   \vfill\eject
   \addtocounter{page}{-1} % reset page counter to previous value
                           % (title page doesn't count)
}% end \stp

\newcommand{\gstp}[3]{%

   \thispagestyle{empty}    % empty page style

   \begin{center}
      \vspace*{2cm}
      {\Huge \bf STONE} \\ 
      \vskip 1cm
      {\large \bf A Structured and Open Environment}
   \end{center}

   \vspace{3cm}

   \begin{tabular}{p{6cm}p{8cm}}
      Titel:          & #1               \\ \\ \\
      Autoren:        & #2               \\ \\ \\
      Datum:          & \mydate          \\ \\ \\
      Ergebnisnummer: & \shorthand .#3   \\ \\ \\
      Status:         & \status          \\ \\ \\
      Verteiler:      & \distrib         \\ \\ \\
      Anschrift:      & \address
   \end{tabular}

   \vfill\eject
   \addtocounter{page}{-1} % reset page counter to previous value
                           % (title page doesn't count)
}% end \gstp
